package com.tianhui.consignortwofei.mvp.ui.activity.hetong.activity.edit;

import com.fgs.common.utils.DateUtil;
import com.tianhui.consignortwofei.mvp.model.hetong.ContractInfo;
import com.tianhui.consignortwofei.mvp.ui.activity.hetong.activity.ContractAddStepTwoActivity;


/**
 * @author fgs
 * @date 2021/5/20
 * @description
 **/
public class EditContractStepTwoActivity extends ContractAddStepTwoActivity {
    @Override
    public void initView() {
        setTitle("编辑合同");
        mSealUnitClickItemView.setContent(mContractInfo.company_a);
        mAccountClickItemView.setContent(mContractInfo.banknumber + "|" + mContractInfo.bankopen);
        mBankNameInputItemView.setContent(mContractInfo.bankopen);
        mSigningAddressInputItemView.setContent(mContractInfo.signedat);
        String singingDate = DateUtil.getDateStringFormat(mContractInfo.signedate,"yyyy-MM-dd HH:mm:ss","yyyy-MM-dd");
        mSigningTimeClickItemView.setContent(singingDate);
    }

    @Override
    protected void openNextActivity(ContractInfo contractInfo) {
        openNextStepActivity(contractInfo, EditContractStepThreeActivity.class);
    }
}
